package cn.teud.inter2;
/*本类用于面向接口编程*/
public class TestTeacherInter {
    public static void main(String[] args) {
        CGBTeacher C = new CGBTeacher();
        C.ready();
        C.terch();
        Teacher t=new CGBTeacher();
        t.ready();
    }
}
//定义老师接口
interface Teacher{
    //定义接口里的方法
    void terch();//授课方法
    void ready();//备课方法
}
class CGBTeacher implements Teacher{

    @Override
    public void terch() {
        System.out.println("授课电商项目");
    }

    @Override
    public void ready() {
        System.out.println("备课电商项目");
    }
}
class ACTTeaxher implements Teacher{

    @Override
    public void terch() {
        System.out.println("正在授课基础加强+框架加强");
    }

    @Override
    public void ready() {
        System.out.println("正在备课基础加强+框架加强");
    }
}
abstract class  SCDTeacher implements Teacher{

    @Override
    public void ready() {
        System.out.println("正在研发新课程...");
    }
}